package com.xxbb.chapter_8.dome2;

import com.xxbb.util.tool.Tool;

public class Program {
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread("t1");
        MyThread myThread2 = new MyThread("t2");
        myThread.start();
        myThread2.start();
        myThread2.join();//主线程必须等待子线程执行完毕
        Tool.println("主线程结束");
        System.exit(0);//主线程执行完毕退出程序
    }
}
